#ifndef __GLOBAL_H__
#define __GLOBAL_H__

#include <QTimer>
#include <QApplication>
#include <QMainWindow>
#include <QFileDialog>
#include <QString>
#include <QSettings>

#include <kapplication.h>

#include "gd.h"

extern "C" {
  //#include "calc.h"
}

#include "cppcalc.h"

struct keyMacro {
  QString name;
  QList<int> keys;
};

extern QMainWindow* gWin;
extern KApplication* gApp;
extern QTimer* timer;
extern QImage* skin;
extern QVector<QRgb> colorVector;
extern QString fileName;
extern QSettings* settings;
extern QList<int> mkeys; // current keys being recorded
extern QList<int> pkeys; // current keys being pressed
extern int mouseKey; // key that's been pressed by mouse
extern short drawSkin;
extern double zoomAmount;
//extern calc_t* calc;
extern int calc;
//extern CPU_t* cpu;
extern short macroRunning; // 0=no,1=yes
extern short gifCaptureRunning;
extern gdImagePtr im;
extern FILE *gifout;


#endif // __GLOBAL_H__
